﻿using HCQ2_Model;
using HCQ2_Model.VR.Params;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_IDAL
{
   public partial interface IT_VRUserLevelLogDAL
    {
        /// <summary>
        ///  验证用户是否需要重新计算用户等级
        /// </summary>
        /// <param name="user_id"></param>
        /// <returns></returns>
        int CheckCountScore(int user_id);
        /// <summary>
        ///  获取店铺下的销售金额
        /// </summary>
        /// <param name="user_id"></param>
        /// <param name="year"></param>
        /// <returns></returns>
        decimal getSellNum(int user_id,int year);
        /// <summary>
        ///  获取用户等级
        /// </summary>
        /// <param name="lineNum">下线人数</param>
        /// <param name="sellNum">销售金额</param>
        /// <param name="folder_id">店铺id</param>
        /// <returns></returns>
        int getUserLevel(int lineNum,decimal sellNum,int folder_id);
        /// <summary>
        /// 获取用户等级日志列表
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        List<UserLevelLog> GetUserLevelLog(UserLevelLogParam param,out int total);
        /// <summary>
        ///  获取商品折扣
        /// </summary>
        /// <param name="user_level">用户等级</param>
        /// <param name="file_id">商品id</param>
        /// <param name="folder_id">店铺id</param>
        /// <returns></returns>
        decimal GetGoodRate(int user_level, int file_id, int folder_id);
    }
}